package com.jhgsys.internal.base.entity;


import java.io.Serializable;
import java.util.Date;

import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 区域设置 Entity
 *
 * @author admin
 * @date 2024-07-31 14:35:47
 */
@Data
@TableName("base_area")
public class BaseArea implements Serializable {

    private static final long serialVersionUID = 4795596257848127180L;
    /**
     *
     */
    @TableId(value = "area_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String areaId;

    /**
     * 租户Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 区域类型 1：内场区域 2：项目区域
     */
    @TableField("area_type")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String areaType;

    /**
     * 区域名称
     */
    @TableField("area_name")
    @NotBlank(message = "{required}")
    @Size(max = 90, message = "{noMoreThan}")
    private String areaName;

    /**
     * 区域坐标
     */
    @TableField("area_coordinate")
    @NotBlank(message = "{required}")
    @Size(max = 900, message = "{noMoreThan}")
    private String areaCoordinate;

    /**
     * 排序
     */
    @TableField("sort")
    @NotNull(message = "{required}")
    @Size(max = 4, message = "{noMoreThan}")
    private String sort;

    /**
     * 状态;0：禁用 1：启用
     */
    @TableField("STATUS")
    @ExcelField("状态")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String status;

    /**
     * 备注
     */
    @TableField("remark")
    @NotBlank(message = "{required}")
    @Size(max = 900, message = "{noMoreThan}")
    private String remark;

    /**
     * 
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 
     */
    @TableField("created_time")
    @Size(max = 3, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 
     */
    @TableField("updated_time")
    @Size(max = 3, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 
     */
    @TableField("deleted_time")
    @Size(max = 3, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;
}